//用于封装所有的localStorage操作
const TOKEN_Key = 'token-geek-pc-hz21'

export const setToken = (token) => localStorage.setItem(TOKEN_Key,token)
export const getToken = () =>localStorage.getItem(TOKEN_Key)
export const removeToken = () =>localStorage.removeItem(TOKEN_Key)
export const hasToken = () =>!!getToken()